﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DecoratorPattern
{
    public class HatDecorator : BaseDecorator
    {
        public HatDecorator(BaseDecorator baseDecorator):base(baseDecorator)
        {

        }

        /// <summary>
        /// 
        /// </summary>
        public override void Action()
        {
            this._baseDecorator.Action();
            Console.WriteLine("盗贼带上帽子");
        }


    }
}
